package com.yadang.infra.service;

import com.yadang.infra.bean.CmmDictDetail;
import com.yadang.infra.tools.SnowFlakeUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class CmmService {

    private static final Logger logger = LoggerFactory.getLogger(CmmService.class);

    public CmmDictDetail getCmmDictById(String id) {
        logger.info("查询ID:[{}]", id);
        CmmDictDetail cmmDictDetail = new CmmDictDetail();
        cmmDictDetail.setId("cmm"+SnowFlakeUtil.getId());
        cmmDictDetail.setKey("China");
        cmmDictDetail.setValue("中国");
        cmmDictDetail.setDescription("中国中英文映射");
        return cmmDictDetail;
    }
}
